/*
 * 
 * Created on Jul 21, 2005
 */
package com.wgo.precise.client.ui.view.delegates;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;

import com.wgo.precise.client.ui.view.session.LogoutAction;


/**
 * 
 * @author Petter L. H. Eide <petter@eide.biz>
 * @version $Id: LogoutActionDelegate.java,v 1.1 2006-01-23 19:58:37 petterei Exp $
 */
public class LogoutActionDelegate extends Action implements IWorkbenchWindowActionDelegate {

    private LogoutAction logoutAction;
    
    public void run(@SuppressWarnings("unused") IAction action) {
        logoutAction.run();
    }

    public void selectionChanged(@SuppressWarnings("unused") IAction action, @SuppressWarnings("unused") ISelection selection) {
    }

    public void dispose() {
    	logoutAction = null;
    }

    public void init(@SuppressWarnings("unused") IWorkbenchWindow window) {
        logoutAction = new LogoutAction() ;
    }

}
